Better Space Bounds for Parameterized Range Majority and Minority
نویسندگان
چکیده
Karpinski and Nekrich (2008) introduced the problem of parameterized range majority, which asks to preprocess a string of length n such that, given the endpoints of a range, one can quickly find all the distinct elements whose relative frequencies in that range are more than a threshold τ . Subsequent authors have reduced their time and space bounds such that, when τ is given at preprocessing time, we need either O(n lg(1/τ)) space and optimal O(1/τ) query time or linear space and O((1/τ) lg lg σ) query time, where σ is the alphabet size. In this paper we give the first linear-space solution with optimal O(1/τ ) query time. For the case when τ is given at query time, we significantly improve previous bounds, achieving either O(n lg lg σ) space and optimal O(1/τ ) query time or compressed space and O (
منابع مشابه
Range Majorities and Minorities in Arrays
Karpinski and Nekrich (2008) introduced the problem of parameterized range majority, which asks us to preprocess a string of length n such that, given the endpoints of a range, one can quickly find all the distinct elements whose relative frequencies in that range are more than a threshold τ . Subsequent authors have reduced their time and space bounds such that, when τ is fixed at preprocessin...
متن کاملCompleteness Results for Parameterized Space Classes
The parameterized complexity of a problem is generally considered “settled” once it has been shown to be fixed parameter tractable or to be complete for a class in the W-hierarchy or a similar parameterized hierarchy. Several natural parameterized problems have, however, resisted such a classification. At least in some cases, the reason is that upper and lower bounds for their parameterized spa...
متن کاملSMOTE: Synthetic Minority Over-sampling Technique
An approach to the construction of classifiers from imbalanced datasets is described. A dataset is imbalanced if the classification categories are not approximately equally represented. Often real-world data sets are predominately composed of “normal” examples with only a small percentage of “abnormal” or “interesting” examples. It is also the case that the cost of misclassifying an abnormal (i...
متن کاملبررسی میزان آگاهی بیماران مبتلا به سل ریوی از بیماران سل ریه و رابطه آن با بکارگیری رژیم درمانی مسلولین شهر تهران در سال 1377
This research is a descriptive- analytic study which has been conducted inorder to determine the degree of tuberculous patients knowledge of their tubereulosis disease and its relation to therapeutic regimen in Tehran TB control centers.In this research , 120 tuberculous patients calling on tuberculosis control centers in Tehran andbeing under drug therdpyfor about 2-9 months were selected as s...
متن کاملThe wisdom of the minority
That later agents follow the herd of earlier actions is a central insight of research into economic cascades and social learning. We consider a variant of the standard model in which agents are differentially informed and observe only the market shares of the competing alternatives, and not the entire decision sequence. In this environment we show, for a large range of parameter values, that fo...
متن کامل